package com.tanqidi.arcgisandroid.data.featureServer

import com.tanqidi.arcgisandroid.data.featureServer.bean.ArcgisFeatureLayer
import com.tanqidi.arcgisandroid.data.featureServer.bean.ArcgisFeatureServer
import com.tanqidi.arcgisandroid.data.featureServer.remote.RemoteArcgisSource
import javax.inject.Inject

class ArcgisRepository @Inject constructor(
    private val remoteGisSource: RemoteArcgisSource
){
    suspend fun getArcgisFeatureServerByUrl(url: String) : ArcgisFeatureServer {
        return remoteGisSource.getArcgisFeatureServerByUrl("$url?f=pjson")
    }

    suspend fun getArcgisFeatureLayerByUrl(url: String): ArcgisFeatureLayer {
        return remoteGisSource.getArcgisFeatureLayerByUrl("$url?f=pjson")
    }

}